package com.cskaoyan.service;

import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2021/11/19 16:01
 */
@Service
public class UserServiceImpl implements UserService{
    @Override
    public void sayHello() {
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("hello world");
    }

    @Override
    public void sayGoodBye(String username) {

        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("byebye " + username);
    }

    /*public void method3() {
        long l = System.currentTimeMillis();
        //yewu
        long l1 = System.currentTimeMillis();
    }*/
}
